home *** CD-ROM | disk | FTP | other *** search
/ Univers Mac Interactif 42 / Univers Mac Interactif - Issue 42.iso / Internet / MacHTTP 2.0 / MacHTTP Software & Docs / Tutorials / Examples / HyperCard CGI demo / CGI Demo Stack / cards.xml < prev    next >
Encoding:
Text File  |  1994-12-19  |  5.3 KB  |  164 lines

  1. card_3061.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>3061</id>
  6.     <filler1>0</filler1>
  7.     <bitmap>BMAP_3724.pbm</bitmap>
  8.     <cantDelete> <false /> </cantDelete>
  9.     <showPict> <true /> </showPict>
  10.     <dontSearch> <false /> </dontSearch>
  11.     <owner>2644</owner>
  12.     <link rel="stylesheet" type="text/css" href="stylesheet_3112.css" />
  13.     <part>
  14.         <id>1</id>
  15.         <type>button</type>
  16.         <visible> <true /> </visible>
  17.         <reserved5> 0 </reserved5>
  18.         <reserved4> 0 </reserved4>
  19.         <reserved3> 0 </reserved3>
  20.         <reserved2> 0 </reserved2>
  21.         <reserved1> 0 </reserved1>
  22.         <enabled> <true /> </enabled>
  23.         <rect>
  24.             <left>200</left>
  25.             <top>207</top>
  26.             <right>343</right>
  27.             <bottom>233</bottom>
  28.         </rect>
  29.         <style>roundrect</style>
  30.         <showName> <true /> </showName>
  31.         <highlight> <false /> </highlight>
  32.         <autoHighlight> <true /> </autoHighlight>
  33.         <sharedHighlight> <true /> </sharedHighlight>
  34.         <family>0</family>
  35.         <titleWidth>0</titleWidth>
  36.         <icon>0</icon>
  37.         <textAlign>center</textAlign>
  38.         <font>Chicago</font>
  39.         <textSize>12</textSize>
  40.         <textStyle>plain</textStyle>
  41.         <name>Edit Stack Script</name>
  42.         <script>on mouseUp
  43. edit the script of this stack
  44. end mouseUp</script>
  45.     </part>
  46.     <part>
  47.         <id>2</id>
  48.         <type>button</type>
  49.         <visible> <true /> </visible>
  50.         <reserved5> 0 </reserved5>
  51.         <reserved4> 0 </reserved4>
  52.         <reserved3> 0 </reserved3>
  53.         <reserved2> 0 </reserved2>
  54.         <reserved1> 0 </reserved1>
  55.         <enabled> <true /> </enabled>
  56.         <rect>
  57.             <left>412</left>
  58.             <top>238</top>
  59.             <right>475</right>
  60.             <bottom>290</bottom>
  61.         </rect>
  62.         <style>transparent</style>
  63.         <showName> <true /> </showName>
  64.         <highlight> <false /> </highlight>
  65.         <autoHighlight> <true /> </autoHighlight>
  66.         <sharedHighlight> <true /> </sharedHighlight>
  67.         <family>0</family>
  68.         <titleWidth>0</titleWidth>
  69.         <icon>12411</icon>
  70.         <textAlign>center</textAlign>
  71.         <font>Chicago</font>
  72.         <textSize>12</textSize>
  73.         <textStyle>plain</textStyle>
  74.         <name>Information</name>
  75.         <script>on mouseUp
  76. go card "info"
  77. end mouseUp</script>
  78.     </part>
  79.     <name></name>
  80.     <script></script>
  81. </card>
  82.  
  83.  
  84. card_3946.xml
  85. <?xml version="1.0" encoding="utf-8" ?>
  86. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  87. <card>
  88.     <id>3946</id>
  89.     <filler1>0</filler1>
  90.     <cantDelete> <false /> </cantDelete>
  91.     <showPict> <true /> </showPict>
  92.     <dontSearch> <false /> </dontSearch>
  93.     <owner>2644</owner>
  94.     <link rel="stylesheet" type="text/css" href="stylesheet_3112.css" />
  95.     <part>
  96.         <id>1</id>
  97.         <type>field</type>
  98.         <visible> <true /> </visible>
  99.         <dontWrap> <false /> </dontWrap>
  100.         <dontSearch> <false /> </dontSearch>
  101.         <sharedText> <false /> </sharedText>
  102.         <fixedLineHeight> <false /> </fixedLineHeight>
  103.         <autoTab> <false /> </autoTab>
  104.         <lockText> <true /> </lockText>
  105.         <rect>
  106.             <left>1</left>
  107.             <top>1</top>
  108.             <right>479</right>
  109.             <bottom>273</bottom>
  110.         </rect>
  111.         <style>scrolling</style>
  112.         <autoSelect> <false /> </autoSelect>
  113.         <showLines> <false /> </showLines>
  114.         <wideMargins> <false /> </wideMargins>
  115.         <multipleLines> <false /> </multipleLines>
  116.         <reservedFamily> 0 </reservedFamily>
  117.         <titleWidth>0</titleWidth>
  118.         <icon>0</icon>
  119.         <textAlign>left</textAlign>
  120.         <font>Geneva</font>
  121.         <textSize>12</textSize>
  122.         <textStyle>plain</textStyle>
  123.         <textHeight>16</textHeight>
  124.         <name></name>
  125.         <script></script>
  126.     </part>
  127.     <part>
  128.         <id>2</id>
  129.         <type>button</type>
  130.         <visible> <true /> </visible>
  131.         <reserved5> 0 </reserved5>
  132.         <reserved4> 0 </reserved4>
  133.         <reserved3> 0 </reserved3>
  134.         <reserved2> 0 </reserved2>
  135.         <reserved1> 0 </reserved1>
  136.         <enabled> <true /> </enabled>
  137.         <rect>
  138.             <left>439</left>
  139.             <top>275</top>
  140.             <right>478</right>
  141.             <bottom>294</bottom>
  142.         </rect>
  143.         <style>transparent</style>
  144.         <showName> <false /> </showName>
  145.         <highlight> <false /> </highlight>
  146.         <autoHighlight> <true /> </autoHighlight>
  147.         <sharedHighlight> <true /> </sharedHighlight>
  148.         <family>0</family>
  149.         <titleWidth>0</titleWidth>
  150.         <icon>6720</icon>
  151.         <textAlign>center</textAlign>
  152.         <font>Chicago</font>
  153.         <textSize>12</textSize>
  154.         <textStyle>plain</textStyle>
  155.         <name></name>
  156.         <script>on mouseUp
  157. go card 1
  158. end mouseUp</script>
  159.     </part>
  160.     <content>
  161.         <layer>card</layer>
  162.         <id>1</id>
  163.         <text><span class="style2">GI Demo by Chuck Shotton, cshotton@oac.hsc.uth.tmc.edu</span><span class="style1">
  164. This stack demonstrates how MacHTTP can pass arguments to HyperCard for processing. Specifically, this stack shows how to utilize the "CGI" (common gateway interface) AppleEvent sent by MacHTTP to applications. Edit the script of this stack and the "test_hc_form.html" file for more details.
  165.  
  166. </span><span class="style2">Running the demo:</span><span class="style1">
  167. 1. Place an alias to HyperCard 2.1 (or greater) in the same folder as MacHTTP. Name the alias "HyperCard.cgi".
  168.  
  169. 2. Drag this stack over the HyperCard alias and drop it.
  170.  
  171. 3. Run MacHTTP 1.3.1b8 or later. (if you want the POST method to work)
  172.  
  173. 4. Access MacHTTP from your WWW client, using the URL:
  174. http://your.address/test_hc_form.html
  175.  
  176. </span><span class="style2">Helpful hints</span><span class="style1">
  177. ‚Ä¢ Use the path args (stuff after the "$" in a MacHTTP URL) to distinguish between multiple forms or searches, allowing HyperCard to handle multiple forms, etc.
  178.  
  179. ‚Ä¢ Take advantage of HyperCard's "item delimiters" property to make parsing form args easier.</span></text>
  180.     </content>
  181.     <name>info</name>
  182.     <script>on opencard
  183. set the scroll of card field 1 to 0
  184. pass opencard
  185. end opencard</script>
  186. </card>
  187.  
  188.  
  189.